package sigapp.hvz.MenuSys;

import sigapp.hvz.R;
import sigapp.hvz.Map.HvZMapActivity;
import sigapp.hvz.Report.Report;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class Menus extends Activity implements OnClickListener
{
	//static int numb;
	@Override
    public void onCreate(Bundle savedInstanceState) 
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.menu);

        View infoButton = findViewById(R.id.info_button);
        infoButton.setOnClickListener(this);
        View exitButton = findViewById(R.id.exit_button);
        exitButton.setOnClickListener(this);
        View mapButton = findViewById(R.id.map_button);
        mapButton.setOnClickListener(this);
        View reportButton = findViewById(R.id.report_button);
        reportButton.setOnClickListener(this);
        TextView text = (TextView) findViewById(R.id.TextView_menus);
        if (Login.numb == 369)
        text.setText("yes");
        else if (Login.numb ==29)
        text.setText("pointless");
    }
	
	 
	public void onClick(View v) 
	{
		switch(v.getId())
		{
		case R.id.info_button:
			Intent i = new Intent(this, Info.class);
			startActivity(i);
			break;
		case R.id.report_button:
			Intent j = new Intent(this, Report.class);
			startActivity(j);
			break;
		case R.id.map_button:
			Intent k = new Intent(this, HvZMapActivity.class);
			startActivity(k);
			break;
		case R.id.exit_button:
			finish();
			break;
		//more buttons
		}
		
	}

}
